package com.example.demo.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotBlank;

@Data
public class LoginDTO {
    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名（学号/工号）", example = "20230001")
    private String username;  // 必填，字符串类型

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码", example = "password123")
    private String password;  // 必填，字符串类型
}